package com.wei.czz.common.property;

import com.wei.czz.common.tool.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2024-05-28 17:49:03
 * className: AesProperty
 * version: 1.0
 * description:
 */
@Getter
@Setter
@Component
@ConfigurationProperties(prefix = "aes")
@Validated
public class AesProperty extends BaseEntity {

    /**
     * 加密密钥
     */
    @NotBlank(message = "加密密钥不能为空")
    private String secret;

    /**
     * iv偏移量
     */
    @NotBlank(message = "iv偏移量不能为空")
    private String ivValue;

}
